<?php
/**
 * Created by PhpStorm.
 * User: titarzhe
 * Date: 18-4-18
 * Time: 上午8:50
 */
namespace AppBundle\DoctrineType\Type;

class StringDateTime extends \DateTime
{
    public function __toString()
    {
        return $this->format('Y-m-d H:i:s');
    }
}